import { _decorator } from 'cc';
import { ListRender } from '../../Basic/Component/ListRender';
import { RoleData } from '../Config/GlobalModel';

const { ccclass, property } = _decorator;
@ccclass('Role')
export class Role extends ListRender {
  data: RoleData;
  get IsDeah() {
    return this.data.hp <= 0;
  }
  hirt(num: number) {}
  attack() {}
  die() {}
}
